package com.maple.blog.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述: com.maple.blog.bean
 *
 * @author hz.lei
 * @date 2018年04月27日 下午11:28
 */
public class JianshuBean {

    private JianshuBean.Author author = new JianshuBean.Author();
    private List<Article> articles = new ArrayList();
    private List<JianshuBean.OwnCollection> ownCollections = new ArrayList();
    private List<JianshuBean.Notebook> notebooks = new ArrayList();
    private int ownCollectionPage = 0;
    private int ownCollectionTotalPages = 0;
    private int notebookPage = 0;
    private int notebookTotalPages = 0;

    public JianshuBean.Author getAuthor() {
        return this.author;
    }

    public List<JianshuBean.Article> getArticles() {
        return this.articles;
    }

    public List<JianshuBean.OwnCollection> getOwnCollections() {
        return this.ownCollections;
    }

    public List<JianshuBean.Notebook> getNotebooks() {
        return this.notebooks;
    }

    public int getOwnCollectionPage() {
        return this.ownCollectionPage;
    }

    public int getOwnCollectionTotalPages() {
        return this.ownCollectionTotalPages;
    }

    public int getNotebookPage() {
        return this.notebookPage;
    }

    public int getNotebookTotalPages() {
        return this.notebookTotalPages;
    }

    public void setAuthor(final JianshuBean.Author author) {
        this.author = author;
    }

    public void setArticles(final List<JianshuBean.Article> articles) {
        this.articles = articles;
    }

    public void setOwnCollections(final List<JianshuBean.OwnCollection> ownCollections) {
        this.ownCollections = ownCollections;
    }

    public void setNotebooks(final List<JianshuBean.Notebook> notebooks) {
        this.notebooks = notebooks;
    }

    public void setOwnCollectionPage(final int ownCollectionPage) {
        this.ownCollectionPage = ownCollectionPage;
    }

    public void setOwnCollectionTotalPages(final int ownCollectionTotalPages) {
        this.ownCollectionTotalPages = ownCollectionTotalPages;
    }

    public void setNotebookPage(final int notebookPage) {
        this.notebookPage = notebookPage;
    }

    public void setNotebookTotalPages(final int notebookTotalPages) {
        this.notebookTotalPages = notebookTotalPages;
    }


    public static class Notebook {
        private boolean book;
        private String id;
        private String name;

        public boolean isBook() {
            return this.book;
        }

        public String getId() {
            return this.id;
        }

        public String getName() {
            return this.name;
        }

        public void setBook(final boolean book) {
            this.book = book;
        }

        public void setId(final String id) {
            this.id = id;
        }

        public void setName(final String name) {
            this.name = name;
        }

    }

    public static class OwnCollection {
        private String avatar;
        private String id;
        private String slug;
        private String title;

        public String getAvatar() {
            return this.avatar;
        }

        public String getId() {
            return this.id;
        }

        public String getSlug() {
            return this.slug;
        }

        public String getTitle() {
            return this.title;
        }

        public void setAvatar(final String avatar) {
            this.avatar = avatar;
        }

        public void setId(final String id) {
            this.id = id;
        }

        public void setSlug(final String slug) {
            this.slug = slug;
        }

        public void setTitle(final String title) {
            this.title = title;
        }


    }

    public static class Article {
        private String id;
        private String cover;
        private String title;
        private String description;
        private String time;
        private Integer likeCount;

        public String getId() {
            return this.id;
        }

        public String getCover() {
            return this.cover;
        }

        public String getTitle() {
            return this.title;
        }

        public String getDescription() {
            return this.description;
        }

        public String getTime() {
            return this.time;
        }

        public Integer getLikeCount() {
            return this.likeCount;
        }

        public void setId(final String id) {
            this.id = id;
        }

        public void setCover(final String cover) {
            this.cover = cover;
        }

        public void setTitle(final String title) {
            this.title = title;
        }

        public void setDescription(final String description) {
            this.description = description;
        }

        public void setTime(final String time) {
            this.time = time;
        }

        public void setLikeCount(final Integer likeCount) {
            this.likeCount = likeCount;
        }


    }

    public class Author {
        private String nickname;
        private String avatar;
        private String description;
        private String userId;

        public String getNickname() {
            return this.nickname;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public String getDescription() {
            return this.description;
        }

        public String getUserId() {
            return this.userId;
        }

        public void setNickname(final String nickname) {
            this.nickname = nickname;
        }

        public void setAvatar(final String avatar) {
            this.avatar = avatar;
        }

        public void setDescription(final String description) {
            this.description = description;
        }

        public void setUserId(final String userId) {
            this.userId = userId;
        }
    }
}
